package web.suzy.oj.service.file.impl;

import org.springframework.stereotype.Service;
import web.suzy.oj.manager.file.UserFileManager;
import web.suzy.oj.service.file.UserFileService;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * YangSuzy 软件工作室
 * 类名: UserFileServiceImpl
 * 描述: ---- 待定 -----
 * 功能: ---- 待定 -----
 *
 * @author YangSuzy
 * Date: 2022/11/28 13:48
 */
@Service
public class UserFileServiceImpl implements UserFileService {

    @Resource
    private UserFileManager userFileManager;

    /**
     * 方法名: generateUserExcel
     * 描述: 生成用户信息Excel表
     *
     * @param key      缓存 Key
     * @param response 响应
     * @return void
     * @date 2022/11/28 13:48
     * @auther YangSuzy
     **/
    @Override
    public void generateUserExcel(String key, HttpServletResponse response) throws IOException {
        userFileManager.generateUserExcel(key, response);
    }
}
